package com.sunwoda.springbootredis.enumcode;

/**
 * @author 2007130280
 */

public enum ResultCode {
    SUCCESS(200,"操作成功"),
    FAILT(400,"操作失败"),
    NOFOUNT(404,"方法404"),
    REEOR(500,"服务器错误");

    private final int code;
    private final String msg;

    ResultCode(int i, String value) {
        this.code = i;
        this.msg = value;
    }

    public int getCode(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
}
